using Microsoft.Xna.Framework;

namespace CthulhuDomain
{
  public class Vector2Adapter : IVector2
  {
    private Vector2 _adaptee;
    public Vector2 Adaptee
    {
      get { return _adaptee; }
      set { _adaptee = value; }
    }

    public Vector2Adapter(float x, float y)
    {
      Adaptee = new Vector2(x, y);
    }


    public float X
    {
      get
      {
        return Adaptee.X;
      }
      set
      {
        _adaptee.X = value;
      }
    }

    public float Y
    {
      get
      {
        return Adaptee.Y;
      }
      set
      {
        _adaptee.Y = value;
      }
    }
  }
}